import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(build打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'

import pinia from '@/store'
import router from '@/router'
// 触发src/components/index.ts
import globalComponent from '@/components'
import '@/styles/index.scss'
createApp(App)
  .use(ElementPlus, {
    locale: zhCn,
  })
  .use(globalComponent) //全局组件
  .use(router) //注册模板路由
  .use(pinia) //注册 pinia
  .mount('#app')
